<?php $this->load->view('left'); ?>

<h2>All Comment </h2>
<br />
<br />
<br />
<br />
<style type="text/css">
#contable{
	display:block;
	overflow: hidden;
}                
#contable span{
	display: block;
    float: left;
    margin: 0 20px 10px 0;
}
</style>
<span style="clear:both; display: block;"></span>
<div style="clear:both">
<?php 
function is_even($num){
     return (is_numeric($num)&(!($num&1)));
 }
$i = 1;
 	  foreach ($page_result as $comment)
	  {
		  echo "<div id='contable'";
		  echo is_even($i)?"":"style='background:#F3F3F3;'";
		  echo "><span>Star:</span><span>";
		  for($i=1;$i<=$comment['level'];$i++)
		  {
		  	echo "<img src=\"images/star_red.gif\" />";
		  }
		  echo "</span><span>Date:</span><span>";
		  echo $comment['date'];
		  echo "</span><span>Operation:</span>";
		  echo "<span>";
		  echo "<a href=\"".site_url('manage/delete_com').'/'.$comment['prod_id'].'/'.$start.'/'.$comment['evaluate_id']."\">"."Delete"."</a>";
		  echo "</span> <br /><span style='width:100%; display:block; word-wrap: break-word;
word-break: normal; '>";
		  echo $comment['comment'];
		  echo "</span>";
		  echo "</div>";
		  $i++;
	  }


?>
</div>
<span style="clear:both; display: block;"></span>
<?php echo $page_link;?>
<?php $this->load->view('right'); ?>
